package org.javaboy.springdoc_demo.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.javaboy.springdoc_demo.model.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "用户相关的接口")
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping
    @Operation(summary = "添加用户")
    public User addUser(@RequestBody User user) {
        return user;
    }
}
